﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SharePoint.Administration.Health;

namespace PingHealthCheckTest
{
    class Program
    {
        static void Main(string[] args)
        {
            var rule = new PingHealthCheck.PingHealthCheckRule();
            SPHealthCheckStatus status = rule.Check();

            Console.WriteLine(status.ToString());
            if( status == SPHealthCheckStatus.Failed )
                Console.WriteLine(rule.Explanation);

            Console.Write("\nPress ENTER to continue...");
            Console.Read();
        }
    }
}
